package com.imm.net.http.base.interceptor

import okhttp3.Interceptor
import okhttp3.Response

/**
 * <p>------------------------------------------------------
 * <p> Copyright (C) 2021 zhangmz, All rights reserved.
 * <p> If there is technical discussion, you can contact zhangmz90@foxmail.com
 * <p>------------------------------------------------------
 * <p> 添加请求头
 * <p> builder.header("", "")
 *
 * @author Created by Administrator
 * @date on 2021 2021/11/15 19:31
 */
class HeadInterceptor : Interceptor {

    override fun intercept(chain: Interceptor.Chain): Response {
        val builder = chain.request().newBuilder()
        return chain.proceed(builder.build())
    }
}